<html><!-- InstanceBegin template="/Templates/_Admin_Template.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- InstanceBeginEditable name="doctitle" -->
<title>TCedit 测试用例编写工具 - 分配产品用户</title>
<!-- InstanceEndEditable -->
<link rel="shortcut icon" href="favicon.ico">
<link href="/css/common.css" rel="stylesheet" type="text/css">
<script src="/js/prototype.js"></script>
<script src="/js/common.js"></script>
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
<script>
function doAction(action){
  if (action == "Search") {
    document.formData.action = "/product/assignProductUserList.jspx?action=search";
  } else if (action == "create") {
    window.location.href="/product/assignProductUser.jspx"
  }
}
</script>
</head>

<body>
<!-- InstanceBeginEditable name="MainContent" -->
<table width="99%" align="center" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="100%" valign="top">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <form action="" method="post" enctype="multipart/form-data" name="formData" id="formData">
        <tr>
          <td >
          用户名：<input name="sUsername" type="text" class="text" id="sUsername" style="width:150px;" value="$!{sUsername}" maxlength="40" />
          真实姓名：<input name="sRealName" type="text" class="text" id="sRealName" style="width:150px;" value="$!{sRealName}" maxlength="40" />
          电子邮件：<input name="sEmail" type="text" class="text" id="sEmail" style="width:150px;" value="$!{sEmail}" maxlength="40" />
          </td>
        </tr>
        <tr>
          <td align="right">
          <input name="SubmitSearch" type="submit" class="button" id="SubmitSearch" value="查询" onClick="doAction('Search')" />
          <input name="SubmitCreate" type="button" class="button" id="SubmitCreate" value="新增" onClick="doAction('create')" />
          </td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td></td>
        </tr>
        </form>
        <tr>
          <td>#pagination()</td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="3">
        <tr>
          <td width="28%" bgcolor="#dedeef"><strong>用户名</strong></td>
          <td width="32%" bgcolor="#dedeef"><strong>真实姓名</strong></td>
          <td width="25%" bgcolor="#dedeef"><strong>角色</strong></td>
          <td width="15%" bgcolor="#dedeef" align="center"><strong>操作</strong></td>
        </tr>
#foreach($a in $productUser)
        <tr>
          <td>$!{a.user.username}</td>
          <td>$!{a.user.realName}</td>
          <td>$!{a.role.describing}</td>
          <td width="15%" align="center"><a href="/product/assignProductUser.jspx?action=query&id=${a.id}">修改</a> <a href="/product/assignProductUser.jspx?action=delete&id=${a.id}" onclick= "return   confirm( '是否确定要删除？ ')">删除</a></td>
        </tr>
#end
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="3">
        <tr>
          <td>#pagination()</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<!-- InstanceEndEditable -->
#if($error)
  <script>alert("$!{error}");</script>
#end
</body>
<!-- InstanceEnd --></html>